package models

// WorkTravelPay 工作出差支付
type WorkTravelPay struct {
	Id           *int       `json:"id" gorm:"column:id;primary_key;auto_increment"`     //ID
	WorkTravelId *int       `json:"workTravelId" gorm:"column:work_travel_id;type:int"` //WorkTravelId
	Money        *float32   `json:"money" gorm:"column:money;type:double(6,2)"`         //消费金额
	Remark       *string    `json:"remark" gorm:"column:remark;type:varchar(20)"`       //消费说明
	IsInvoice    *bool      `json:"isInvoice" gorm:"column:is_invoice;type:int"`        //是否有发票
	PayTime      *LocalTime `json:"payTime" gorm:"column:pay_time;type:datetime"`       //消费时间
	CreateBy     *int       `json:"createBy" gorm:"column:create_by;type:int"`          //创建人

}

// TableName 设置表名称
func (models *WorkTravelPay) TableName() string {
	return "work_travel_pay"
}

// 初始化
func init() {
	//将模型添加到注册容器中
	registerContainer = append(registerContainer, &WorkTravelPay{})
}
